package com.example.xsssglxt.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("student")
@NoArgsConstructor
@EqualsAndHashCode

public class Student {
//    @Id
//    @GeneratedValue(generator = "uuid2")
//    @GenericGenerator(name = "uuid2", strategy = "uuid2")
@ExcelProperty(value = "主键",index = 0)
    private String id;
    @ExcelProperty(value = "创建时间",index = 5,converter = localtime.class)
    @ApiModelProperty(value = "创建时间，yyyy-MM-dd")
    private LocalDateTime  create_time;
    @ExcelProperty(value = "更新时间",index = 6,converter = localtime.class)
    @ApiModelProperty(value = "更新时间，yyyy-MM-dd")
    private LocalDateTime update_time;
    @ExcelProperty(value="用户名", index = 1)
    private String name;
    @ExcelProperty(value="密码", index = 2)
    private String password;
    @ExcelProperty(value="性别", index = 3)
    private String sex;
    @ExcelProperty(value="编号", index= 4)
    private String sn;

}
